package com.ruoyi.system.domain;

import javax.persistence.*;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;

import com.ruoyi.common.core.domain.BaseEntity;
import org.hibernate.annotations.GenericGenerator;

/**
 * 岗位与菜单关系信息对象 sys_post_menu
 * 
 * @author youde
 * @date 2022-11-24
 */
@Entity
@Table(name = "sys_post_menu")
@GenericGenerator(name = "uuid2", strategy = "com.ruoyi.common.utils.IDUtils")
public class SysPostMenu extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    @Id
    @Column(columnDefinition = "char(19)")
    @GeneratedValue(strategy = GenerationType.IDENTITY,generator = "uuid2")
    private String postMenuId;

    /** 岗位id */
    @Excel(name = "岗位id")
    @Column(columnDefinition = "char(19)")
    private String postId;

    /** 菜单id */
    @Excel(name = "菜单id")
    @Column(columnDefinition = "char(19)")
    private String menuId;

    /** 菜单类型 */
    @Excel(name = "菜单类型")
    @Column(columnDefinition = "char(1)")
    private String menuType;

    public void setPostMenuId(String postMenuId) 
    {
        this.postMenuId = postMenuId;
    }

    public String getPostMenuId() 
    {
        return postMenuId;
    }
    public void setPostId(String postId) 
    {
        this.postId = postId;
    }

    public String getPostId() 
    {
        return postId;
    }
    public void setMenuId(String menuId) 
    {
        this.menuId = menuId;
    }

    public String getMenuId() 
    {
        return menuId;
    }
    public void setMenuType(String menuType) 
    {
        this.menuType = menuType;
    }

    public String getMenuType() 
    {
        return menuType;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("postMenuId", getPostMenuId())
            .append("postId", getPostId())
            .append("menuId", getMenuId())
            .append("menuType", getMenuType())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
